import Vue from 'vue';
import router from './router';
import libs from '@/assets/js/libs';
import filters from './filter';
import VueAwesomeSwiper from 'vue-awesome-swiper';

import 'babel-polyfill';
import 'normalize.css';
import 'flex.css';
import 'animate.css';
import '@/assets/css/index.scss';
import 'swiper/dist/css/swiper.css';

import {
  AlertPlugin,
  ToastPlugin,
  LoadingPlugin,
  ConfirmPlugin
} from 'vux';

Vue.use(ToastPlugin);
Vue.use(AlertPlugin);
Vue.use(LoadingPlugin);
Vue.use(ConfirmPlugin);

Object.keys(filters).forEach(k => Vue.filter(k, filters[k]));

new Vue({
  el: '#app',
  router,
});

libs.adaptor(750, 32);
